import request from '@/utils/back-request';

// 获取普通产业树/区域重点产业
export const getIndustryListReq = (data) => {
  return request({
    url: `/api-career/career/report/get/industry/tree`,
    method: "post",
    data,
  });
};
export const getIndustryTreeReq = (data) => {
  return request({
    url: `/api-career/career/report/get/industry/tree/collect`,
    method: "post",
    data,
  });
};
// 根据产业名称搜索/根据产业名称获取产业详情
export const getIndustryByName = (data) => {
  return request({
    url: `/api-career/career/report/get/industry/byName`,
    method: "post",
    data,
  });
};
// 根据产业id和菜单ID获取产业详情
export const getIndustryDetailById = (data) => {
  return request({
    url: `/api-career/career/report/get/industry/detailById`,
    method: "post",
    data,
  });
};
// 获取代表企业
export const getInstudryComLists = (data) => {
  return request({
    url: `/api-career/campus/industryEncy/getInstudryComLists`,
    method: "post",
    data,
  });
};
// 获取代表专业
export const positionsByIndustry = (data) => {
  return request({
    url: `/api-career/campus/industryEncy/positionsByIndustry`,
    method: "post",
    data,
  });
};

//get all first major 中台接口
export function getProfession(data) {
  return request({
    url: `/api-career/campus/positionTagList`,
    method: 'post',
    data
  });
}
//get child major by id 中台接口
export function getChildMajorReq(data) {
  return request({
    url: `/api-career/positionSalary/profession/tree`,
    method: 'post',
    data
  });
}
export function getMajorByName(data) {
  return request({
    url: `/api-career/campus/position/tags`,
    method: 'post',
    data
  });
}
// 新增/取消收藏
export function campusCollect(data) {
  return request({
    url: '/api-career/campus/collect',
    method: 'post',
    data,
  });
}
// 收藏产业列表
export function getFollowIndustryReq(data) {
  return request({
    url: '/api-career/campus/collect/industrys',
    method: 'post',
    data,
  });
}
// 查询是否收藏
export function campusIsCollect(data) {
  return request({
    url: "/api-career/campus/is/collect",
    method: "post",
    data,
  });
}